"use client"
import FileUpload from "../components/FileUpload";
// export const metadata = {
//   title: "...",
//   description: "...",
// };

export default function Split() {

  function jumpPage(fname){
    router.push("/split/"+fname)
  }

  return (
    <>
    <h1>Online PDF Splitter</h1>
      <FileUpload jumpAction={jumpPage}>
      <h2>PDF splitter (extractor/cutter)</h2>
                        <p/>This tool allows you to upload any multi-page PDF document and split it into several files. It provides two ways how to split a PDF:
                        <ul>
                            <li>automatically split the document into individual pages (one page per file) with a single click;</li>
                            <li>manually enter page numbers where to break the PDF if you want to export a selected range of pages.</li>
                        </ul>
                        <p/>After splitting, you can download each page individually as a one page PDF, or all of them at once, as a single .zip archive containing numbered PDF files. You can upload and split multiple PDF files at once (batch processing).
                        <p/>
                            This tool is free to use; we don't add any watermarks or limit the number of pages.<br/>
                            All files are deleted automatically 1 hour after upload.<hr/>
                            <p/>
                                After splitting the PDF, it's possible to combine some of the pages you choose back together in your preferred order or add pages from another document using our <a title="Merge PDF files together" href="/merge">PDF merge tool</a>
      </FileUpload>
    </>
  );
}
